import request from '@/utils/request'

// 查询排列5计算列表
export function listPl5(query) {
    return request({
        url: '/caipiao/pl5/list',
        method: 'get',
        params: query
    })
}

// 查询排列5计算详细
export function getPl5(id) {
    return request({
        url: '/caipiao/pl5/' + id,
        method: 'get'
    })
}

// 新增排列5计算
export function addPl5(data) {
    return request({
        url: '/caipiao/calpl5',
        method: 'post',
        data: data
    })
}

// 修改排列5计算
export function updatecalpl5(data) {
    return request({
        url: '/caipiao/calpl5',
        method: 'put',
        data: data
    })
}

// 删除排列5计算
export function delcalpl5(id) {
    return request({
        url: '/caipiao/calpl5/' + id,
        method: 'delete'
    })
}

// 生成号码
export function getKjNum(qs) {
    return request({
        url: '/caipiao/calpl5/getKjNum/' + qs,
        method: 'get',
    })
}

export function generateNum(data) {
    return request({
        url: '/caipiao/calpl5/generateNum',
        method: 'post',
        data: data
    })
}

//保存号码
export function savePl3Num(data) {
    return request({
        url: '/caipiao/calpl5/savePl3Num',
        method: 'post',
        data: data
    })
}

export function getNums(data) {
    return request({
        url: '/caipiao/common/getNums',
        method: 'post',
        data: data
    })
}

export function calNums(data, ty) {
    return request({
        url: '/caipiao/common/calNums/' + ty,
        method: 'post',
        data: data
    })
}

export function cal(data, ty) {
    return request({
        url: '/caipiao/common/cal/' + ty,
        method: 'post',
        data: data
    })
}
